<template>
	<view class="title active" :data-text="title">
		{{title}}
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: '爆爆box'
			}
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.title {
		font-family: YouSheBiaoTiHei;
		font-size: 48rpx;
		color: rgb(132, 132, 132);
		margin-left: 8rpx;

		&.active {
			color: #ff7803;
			position: relative;
			z-index: 0;
		}

		&.active::before {
			content: attr(data-text);
			position: absolute;
			left: 0;
			z-index: -1;
			-webkit-text-stroke: 16rpx #fff;
		}

		&.active::after {
			content: attr(data-text);
			position: absolute;
			left: 0;
			z-index: -1;
			-webkit-text-stroke: 8rpx #1C1C1C;
		}
	}
</style>
